package com.lixueju.security.box.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色和菜单的关系
 * </p>
 *
 * @author lixueju
 * @since 2019-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("u_auth_role_menu_rel")
public class AuthRoleMenuRel extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 本表主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 菜单ID
     */
    @TableField("menuId")
    private Long menuId;

    /**
     * 角色ID
     */
    @TableField("roleId")
    private Long roleId;


}
